﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LLServer.Data
{
    public class BattleReport
    {
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        private int cpt1_id;

        public int Cpt1_id
        {
            get { return cpt1_id; }
            set { cpt1_id = value; }
        }
        private int cpt2_id;

        public int Cpt2_id
        {
            get { return cpt2_id; }
            set { cpt2_id = value; }
        }
        private int cpt1_fraction_id;

        public int Cpt1_fraction_id
        {
            get { return cpt1_fraction_id; }
            set { cpt1_fraction_id = value; }
        }
        private int cpt2_fraction_id;

        public int Cpt2_fraction_id
        {
            get { return cpt2_fraction_id; }
            set { cpt2_fraction_id = value; }
        }
        private int winner_id;

        public int Winner_id
        {
            get { return winner_id; }
            set { winner_id = value; }
        }
        private DateTime start_date;

        public DateTime Start_date
        {
            get { return start_date; }
            set { start_date = value; }
        }
        private DateTime end_date;

        public DateTime End_date
        {
            get { return end_date; }
            set { end_date = value; }
        }
        private int winner_experience;

        public int Winner_experience
        {
            get { return winner_experience; }
            set { winner_experience = value; }
        }
        private int loser_experience;

        public int Loser_experience
        {
            get { return loser_experience; }
            set { loser_experience = value; }
        }
        private int winner_honor;

        public int Winner_honor
        {
            get { return winner_honor; }
            set { winner_honor = value; }
        }
        private int loser_honor;

        public int Loser_honor
        {
            get { return loser_honor; }
            set { loser_honor = value; }
        }

        public BattleReport()
        {

        }

        public BattleReport(int cpt1_id, int cpt2_id, int cpt1_fraction_id, int cpt2_fraction_id, int winner_id, DateTime start_date, DateTime end_date, int winner_experience, int loser_experience, int winner_honor, int loser_honor)
        {
            this.id = -1;
            this.cpt1_id = cpt1_id;
            this.cpt2_id = cpt2_id;
            this.cpt1_fraction_id = cpt1_fraction_id;
            this.cpt2_fraction_id = cpt2_fraction_id;
            this.winner_id = winner_id;
            this.start_date = start_date;
            this.end_date = end_date;
            this.winner_experience = winner_experience;
            this.winner_honor = winner_honor;
            this.loser_experience = loser_experience;
            this.loser_honor = loser_honor;
        }

        public BattleReport(int id, int cpt1_id, int cpt2_id, int cpt1_fraction_id, int cpt2_fraction_id, int winner_id, DateTime start_date, DateTime end_date, int winner_experience, int loser_experience, int winner_honor, int loser_honor)
        {
            this.id = id;
            this.cpt1_id = cpt1_id;
            this.cpt2_id = cpt2_id;
            this.cpt1_fraction_id = cpt1_fraction_id;
            this.cpt2_fraction_id = cpt2_fraction_id;
            this.winner_id = winner_id;
            this.start_date = start_date;
            this.end_date = end_date;
            this.winner_experience = winner_experience;
            this.winner_honor = winner_honor;
            this.loser_experience = loser_experience;
            this.loser_honor = loser_honor;
        }
    }
}
